package xkp.lesson6;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.LinkedList;

public class TestFactory {
    public static void main(String[] args) {
        //要有仓库
        LinkedList<Commonity> list = new LinkedList<>();
        Product product = new Product(list);
        Consumer consumer = new Consumer(list);
        product.start();
        consumer.start();
    }
}
